package fr.ralmn.OgameDroid.list.Adapter;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class MyPagerAdapter extends FragmentPagerAdapter {

	private final List<Fragment> fragements;

	public MyPagerAdapter(FragmentManager fm, List<Fragment> fr) {
		super(fm);
		fragements = fr;
	}


	@Override
	public Fragment getItem(int arg0) {
		return fragements.get(arg0);
	}

	@Override
	public int getCount() {
		return fragements.size();
	}

}
